import 'package:gold/generated/json/base/json_field.dart';
import 'package:gold/generated/json/withdrawal_record_model.g.dart';
import 'dart:convert';
export 'package:gold/generated/json/withdrawal_record_model.g.dart';

@JsonSerializable()
class WithdrawalRecordModel {
	/// 提现ID
	int? id;
	@JSONField(name: 'user_id')
	/// 用户ID
	int? userId;
	/// 提现金额
	double? amount;
	@JSONField(name: 'order_no')
	/// 提现编号
	String? orderNo;
	/// 提现状态
	int? status;
	/// 创建时间
	@JSONField(name: 'created_at')
	String? createdAt;
	/// 更新时间
	@JSONField(name: 'updated_at')
	String? updatedAt;

	WithdrawalRecordModel();

	factory WithdrawalRecordModel.fromJson(Map<String, dynamic> json) => $WithdrawalRecordModelFromJson(json);

	Map<String, dynamic> toJson() => $WithdrawalRecordModelToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}